#include <iostream>
#include<string>
using namespace std; 
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main()
{
	char s1[20] = "abcdefgh";
	char s2[20] = "cd";
    cin >> s1 >>s2 ;
	if(strstr(s1,s2))
	cout << "yes" << endl;
	else 
	cout << "no" << endl;
	return 0;
}
